package com.graduation.smartparkingplatform.Response;

public enum ResultEnums {
  SUCCESS("200", "请求成功"),
  ERROR("404", "请求失败"),
  IDENTIT_ERROR("401", "账户名或密码错误"),
  AUTH_SUCCESS("200", "身份验证成功"),
  LOGIN_ERROR("401", "无登录权限，请联系管理员"),
  AUTH_ERROR("401", "身份验证失败"),
  VERIFY_CODE_EXPIRE("400", "验证码过期"),
  VERIFY_CODE_ERROR("400", "验证码错误"),
  SYSTEM_ERROR("500", "系统异常"),
  BUSSINESS_ERROR("500", "业务逻辑错误"),
  PARAM_ERROR("2002", "业务参数错误");

  private String code;
  private String msg;

  ResultEnums(String code, String msg) {
    this.code = code;
    this.msg = msg;
  }

  public String getCode() {
    return code;
  }

  public void setCode(String code) {
    this.code = code;
  }

  public String getMsg() {
    return msg;
  }

  public void setMsg(String msg) {
    this.msg = msg;
  }
}
